home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / objects / r3sellis.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  2.2 KB  |  105 lines

  1.  
  2. // JavaScript wrapper for r3sellis.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_SELECTLIST_H = 1;
  7. include("oops/r3model.js")
  8.  
  9.  
  10. var R3CLID_SELECTLIST = 66;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Insert object to the selected objects list.
  16. // p3: Object, object to be selected
  17.  
  18. R3SLIM_INSERT = 66000;
  19.  
  20. function mR3SLIM_INSERT(p3) {
  21.   DoA(this.r3obj, 66000, p3, R3TID_OBJECT, 0);
  22. }
  23.  
  24. // Description: Remove object from the selected objects list.
  25. // p3: Object, object to be deselected
  26.  
  27. R3SLIM_REMOVE = 66001;
  28.  
  29. function mR3SLIM_REMOVE(p3) {
  30.   DoA(this.r3obj, 66001, p3, R3TID_OBJECT, 0);
  31. }
  32.  
  33. // Description: Remove all selections.
  34.  
  35. R3SLIM_CLEAR = 66002;
  36.  
  37. function mR3SLIM_CLEAR() {
  38.   DoA(this.r3obj, 66002, 0, R3TID_INTEGER, 0);
  39. }
  40.  
  41. // Description: Lock select list for exclusive (write) access.
  42.  
  43. R3SLIM_LOCKEXCLUSIVE = 66003;
  44.  
  45. function mR3SLIM_LOCKEXCLUSIVE() {
  46.   DoA(this.r3obj, 66003, 0, R3TID_INTEGER, 0);
  47. }
  48.  
  49. // Description: Lock selection list for shared (read) access.
  50.  
  51. R3SLIM_LOCKSHARED = 66004;
  52.  
  53. function mR3SLIM_LOCKSHARED() {
  54.   DoA(this.r3obj, 66004, 0, R3TID_INTEGER, 0);
  55. }
  56.  
  57. // Description: Release selection list
  58.  
  59. R3SLIM_RELEASE = 66005;
  60.  
  61. function mR3SLIM_RELEASE() {
  62.   DoA(this.r3obj, 66005, 0, R3TID_INTEGER, 0);
  63. }
  64.  
  65.  
  66.  
  67.  
  68. R3SLIA_List = 66500;
  69. function GetR3SLIA_List() {
  70.   return R3Get(this.r3obj, R3SLIA_List, R3TID_LIST, R3TNF_ARRAY); 
  71. }
  72.  
  73. R3SLIA_Count = 66501;
  74. function GetR3SLIA_Count() {
  75.   return R3Get(this.r3obj, R3SLIA_Count, R3TID_INTEGER, 0); 
  76. }
  77.  
  78. R3SLIA_Array = 66502;
  79. function GetR3SLIA_Array(index) {
  80.   return R3GetIndexed(this.r3obj, R3SLIA_Array, index, R3TID_OBJECT, 0); 
  81. }
  82.  
  83.  
  84.  
  85. function r3Selectlist () { 
  86.    this.base = r3God;
  87.    if(arguments.length) {
  88.       this.base(R3CLID_SELECTLIST, arguments);
  89.    }
  90.    // Methods
  91.    this.INSERT=mR3SLIM_INSERT;
  92.    this.REMOVE=mR3SLIM_REMOVE;
  93.    this.CLEAR=mR3SLIM_CLEAR;
  94.    this.LOCKEXCLUSIVE=mR3SLIM_LOCKEXCLUSIVE;
  95.    this.LOCKSHARED=mR3SLIM_LOCKSHARED;
  96.    this.RELEASE=mR3SLIM_RELEASE;
  97.  
  98.    // Attributes
  99.    this.GetList=GetR3SLIA_List;
  100.    this.GetCount=GetR3SLIA_Count;
  101.    this.GetArray=GetR3SLIA_Array;
  102. }
  103.  
  104. r3Selectlist.prototype=new r3Model;
  105. // r3sellis.h_H